Part Number Hot Search : 
TRONIC 1N524 ST2N2222 KTC3198A PJSD12TS 62000 2403S MB100
Product Description
Full Text Search
 

To Download AN1717 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MOTOROLA
www..com
Order this document by AN1717/D
SEMICONDUCTOR
APPLICATION NOTE
ITC127 MC68HC705MC4 MOTION CONTROL DEVELOPMENT BOARD
by Bill Lucas and Warren Schultz
1 Introduction
In motion control systems microprocessors are used to generate pulse-width modulated (PWM) output signals. It is highly wasteful of computational resources for PWM to be software-generated at inaudible frequencies. A dedicated hardware module, such as the one found on the MC68HC705MC4 is a much more efficient way of producing pulse-width modulation. A systems development board for motion control that uses the MC68HC705MC4's pulse-width modulator is presented here. It is designed to provide control signals for driving brush or three-phase brushless dc motors, and to interface directly with ITC122 and ITC132 power output stages.
Figure 1 ITC127 Development Board
(c) MOTOROLA INC., 1997
2 Evaluation www..com
Board Description
The evaluation board shown in Figure 1 is designed to provide control signals for brush and brushless dc motors. It accepts inputs from switches and a potentiometer on the board or external RUN/STOP, FORWARD/REVERSE, and SPEED inputs. The speed input is a 0 to +5 volt signal with zero volts corresponding to zero speed and +5 volts producing full speed. RUN/STOP and FORWARD/REVERSE are logic inputs, with logic low inputs producing run and reverse outputs. Hall 1, Hall 2, and Hall 3 inputs are also provided for connection to brushless dc motors. The ITC127 motion control development board is designed to run in two configurations. It operates on its own with the processor supplied. With the processor removed, it connects to an MC68HC05MC4 emulator via M68CBL05A cable and M68TA05MC4P28 target head adapter. For purposes of motion control code development, the emulator may be run on either an MMDS05 or MMEVS05. The output side of this board connects to an ITC122 or ITC132 power stage via a ribbon cable. Six outputs provide power device control signals for controlling a three-phase brushless dc motor. Brush dc motors can be controlled by using either one or two of the three available phases. All six outputs will sink 25 mA, making them suitable for directly driving opto couplers in isolated gate drives. A switched +5 volts is also provided to serve as the B+ power source for opto coupler input diodes. This voltage is turned off at reset to facilitate orderly power up and power down of the gate drives.
3 Electrical Characteristics
The following electrical characteristics apply to operation at 25 degrees Celsius, and unless otherwise specified, B+ = +12 volts. Table 1 Electrical Characteristics
Characteristic Power Supply Voltage -- Driving ITC122 -- Driving ITC132 Power Supply Voltage Min Logic One Input Voltage Max Logic Zero Input Voltage Quiescent Current SPEED Input Buffer Gain -- Vtemp -- Vbus -- Isense Output Sink Current Symbol B+ 7.5 7.5 +5 VIH VIL ICC VSPEED AV(Vtemp) AV(Vbus) AV(Isense) 20 -16.9 2 2 25 mA 4.75 2.7 2.0 80 28 15 5.25 Volts Volts Volts Volts Volts mA %/Volt Min Typ Max Units
MOTOROLA 2
AN1717/D
4 Components www..com
The ITC127 Evaluation Board components are described in the following schematic and parts list. A pin-by-pin circuit description follows in 5 Pin-by-Pin Description. Table 2 ITC127 Evaluation Board Parts List
Designators C1-C6 C7-C12, C15, C17, C20, C25, C27, C28 C14 C13, C26 C16, C18, C19 C21-C24 D1 J1 J2 J3, J4, J5 LED1 P1 Q1 Q2 RP1 R5 R26-R31 R33 R18 R24 R2 R1, R4, R20, R25 R6, R7, R15, R16, R32, R34, R35 R3 R8 R23 R19 R17 R9, R11, R12, R13, R21, R22 SW1 SW2, SW3 T1 T2 T3 U1 U2 1 2 3 4 1 1 1 3 1 1 1 1 1 1 6 1 1 1 1 4 7 1 1 1 1 1 6 1 2 1 1 1 1 1 .001 .01 22 pf Capacitor 470 pf Capacitor General-Purpose Diode 2x7 .1o.c. Jumper Block 2x8 .1o.c. Jumper Block 1x3 .1o.c. Jumper Block Green LED DB-9 Connector (Female) Small Signal FET Transistor Small Signal PNP Transistor 10k Ohm 10 Pin SIP 5k Ohm Variable Resistor 24 Ohm Resistor 47 Ohm Resistor 100 Ohm Trim-Pot 470 Ohm Resistor 10 Meg Ohm Resistor 1k Ohm Resistor 4.7k Ohm Resistor 10k Ohm Resistor 16.9k Ohm Resistor 1% 1.0k Ohm Resistor 1% 1.40k Ohm Resistor 1% 174 Ohm Resistor 1% 10k Ohm Resistor 1% SPST Push-Button Switch SPST Toggle Switch 9-Screw Terminal Connector 5-Screw Terminal Connector 2-Screw Terminal Connector Low Voltage Detector Microprocessor Sprague Sprague Mepco-Centralab Sprague Motorola Digi-Key Digi-Key Digi-Key General Instruments Digi-Key Motorola Motorola Digi-Key Clarostat Yageo Yageo Digi-Key Yageo Yageo Yageo Yageo Yageo Yageo Yageo Yageo Yageo Yageo NKK NKK Phoenix Contact Phoenix Contact Phoenix Contact Motorola Motorola AB15AP-FA A12AH MKDSN 1,5/9-5,08 MKDSN 1,5/5-5,08 MKDSN 1,5/2-5,08 MC34064P-5 XC68HC705MC4S 3386P-101-ND 1C105Z5U102M050B 1C105Z5U103M050B CN15A220K 1C105Z5U471M050B 1N4002 S2011-36-ND S2011-36-ND S1011-36-ND MV5474C A2100-ND 2N7000 MPSA56 770-101R10K-ND 392JB-5k Qty. 6 12 Description 1 .1 Manufacturer Digi-Key Sprague Part Number P5268-ND 1C105Z5U104M050B
AN1717/D
MOTOROLA 3
www..com
Table 2 ITC127 Evaluation Board Parts List (Continued)
Qty. 2 1 1 1 1 1 1 1 3 4 5 2 2 1 1 1 3 4 1 Description Quad 2-Input NOR Gate Quad Op-Amp RS-232 Driver/Receiver Octal Bus Driver Hex Schmitt Trigger Voltage Regulator 6.0 Mhz (Low-Profile Crystal) 28-Pin Machined-Pin IC Socket Test Point Black Test Point Red Test Point Yellow 2-56 x 1/4'' screw 2-56 nut 4-40 x 1/4'' screw 4-40 nut Insulator for Y1 Shorting Jumpers for J4-J5 Self-Stick Rubber Feet Bare Printed Circuit Board Bivar Digi-Key CI-192-028 929955-06-ND Manufacturer Motorola Motorola Motorola Motorola Motorola Motorola CTS Digi-Key Components Corp. Components Corp. Components Corp. Part Number MC74HC02N MC33204P MC145407P MC74HC366N MC14584BCP MC7805ACT ATS060SSLV AE7228-ND TP-104-01-00 TP-104-01-02 TP-104-01-04
Designators U3, U4 U5 U6 U7 U8 VR1 Y1 Socket for U2 Test Point GND, GND, AGND Test Point Atop, Btop, Ctop, TP1 Test Point Abot, Bbot, Cbot, TP2, TP3 Screws for P1 Nuts for P1 Screw for VR1 Nut for VR1 No Designator No Designator No Designator No Designator
5 Pin-by-Pin Description
Inputs and outputs are grouped into six connectors. Inputs are located on screw connector T1. They are optional external interfaces that include a provision to power the board with +5 volts if the B+ input on connector T3 is not used. Screw connector T2 contains three Hall sensor inputs, a +5 volt connection for the Hall sensors, and a ground. B+, if used instead of the +5 volt input, is supplied through screw connector T3. It will accept power supply voltages from +7.5 to +28 volts when driving an ITC122 power stage, and +7.5 to +15 volts when driving an ITC132. The lower voltage limit for driving the ITC132 results from the need to supply more current from the +5 volt bus to drive opto coupled inputs. Ribbon connector J1 contains six outputs for driving a power stage and a switched +5 volt power line. Feedback signal inputs are located on ribbon connector J2, where there is provision for temperature, bus voltage, and current sense feedback signals. There is also a DB-9 connector with the standard configuration for RS-232. Ribbon connector pinouts are shown in Figure 2.
MOTOROLA 4
AN1717/D
www..com
OUTPUT +5 +5 GND GND GND GND GND 1 3 5 7 2 4 6 8 Atop Abot Btop Bbot GND GND GND GND 1 3 5 7
FEEDBACK 2 4 6 8 10 3 Phase A Phase B Phase C
N/C N/C Vtemp AGND AGND
9 11 13 3
10 Ctop 12 Cbot 14 GND
GND GND Vbus Isense TOP VIEW
9 11 13 15
12 14 16
J1
J2
Figure 2 Ribbon Connector Pinouts 5.1 B+ Connector T3 5.1.1 B+ B+ is one of two possible power supply connections. The board requires either a +7.5 to +15 Vdc supply on this input, or a +5 volt supply on connector T1. One or the other, not both, are required. It is located on the screw connector T3. 5.1.2 GND The GND terminal on this connector is intended as the return for power supply B+. 5.2 Input Connector 5.2.1 +5 This input is an alternate input to B+. If it is used, no connection to B+ is required. 5.2.2 GND There are multiple ground connections. The one adjacent to +5 is intended as the +5 volt return. 5.2.3 AGND An analog ground for the speed control input is labeled AGND.
AN1717/D
MOTOROLA 5
5.2.4 SPEED www..com This input can be used to control motor speed with an external zero to +5 volt analog signal. Zero volts corresponds to zero speed, and +5 volts to full speed. To use it, jumper J5 needs to be moved to the external position, which disables the on-board speed control potentiometer. As shipped, J5 is set to control speed from the potentiometer. 5.2.5 REV This is an external logic input that reverses the motor when it is grounded. To use it, jumper J3 needs to be moved to the external position, which disables the on-board FORWARD/REVERSE switch. As shipped, J3 is set to control direction from the switch. 5.2.6 RUN This is an external logic input that enables the motor when it is grounded. To use it, jumper J4 needs to be moved to the external position, which disables the on-board RUN/STOP switch. As shipped, J4 is set to control RUN/STOP from the switch. 5.3 Hall Connector 5.3.1 HALL 1, HALL 2, HALL 3 These inputs are intended to receive open collector Hall sensor outputs from brushless dc motors. They are buffered with Schmitt triggers and filtered for noise immunity. 5.3.2 +5 This connection is for the +5 volts that the board supplies to Hall sensors in a brushless dc motor. 5.3.3 GND GND on this connector is the Hall sensor ground. 5.4 Feedback Connector 5.4.1 Isense Pin 15 of feedback connector J2 is intended to be a current sense input. It is connected to A/D channel AD1 through a gain of two non-inverting amplifier. The gain of this amplifier has been made easy to adjust by supplying blank pads for optional resistors R14 and R10. 5.4.2 Vbus Pin 13 of connector J2 is connected to A/D channel AD0 through a gain of two non-inverting amplifier. It is intended for motor bus voltage feedback. 5.4.3 Vtemp Pin 12 on connector J2 is connected to an amplifier that is designed to translate the forward voltage of a diode into a usable A/D voltage. The output of this amplifier is connected to A/D channel AD2. Its primary use is temperature sensing. 5.4.4 AGND Pins 14 and 16 are tied to AGND, which is a ground for analog circuits. This ground is routed such that all of the analog returns connect with digital ground at just one point.
MOTOROLA 6
AN1717/D
5.5 Output www..com
Connector
5.5.1 Switched +5 Pins 1 and 3 are connected to the +5 volt bus through a switch that is open at reset. The resulting switched +5 volts can be used to power opto couplers in isolated off-line motor drives. The off-at-reset feature keeps output transistors off during reset. 5.5.2 GND Pins 5, 7, 9, 11, 13, and 14 are tied to ground. They provide a return for the switched +5 volts and are used to provide noise isolation between output lines in a ribbon cable. 5.5.3 Atop -- Cbot Outputs to drive six power transistors are located on pins 2, 4, 6, 8, 10, and 12. They will drive three phases of half-bridge configured output transistors, and are set up in an active low configuration. Processor outputs are routed through cross coupled NOR gates to provide protection from inadvertent simultaneous turn-on of a top and bottom transistor in one phase. They are also buffered to allow direct drive of opto couplers in isolated off-line motor drives. 5.6 DB-9 Connector The DB-9 connector is set up for RS-232 communication with the MC68HC705MC4. It has standard RS-232 pinouts. 5.7 Test Points 5.7.1 TP1 -- TP3 Test points TP1, TP2, and TP3 provide access to buffered feedback signals for temperature, motor bus current, and motor bus voltage. These voltages are seen by A/D converter inputs AD2, AD1, and AD0. The temperature feedback voltage can be calibrated with potentiometer R18. 5.7.2 GND and AGND These test points are provided to facilitate grounding test instruments. 5.7.3 Outputs All six outputs and a ground are also available as test points. They are connected in parallel with the outputs on ribbon connector J1.
6 Application Example
An application example shown in Figure 3 illustrates system connections to an ITC122 power stage and a brushless dc motor. This arrangement can be run stand-alone, or the ITC127 can be connected to an MMDS05 for code development. The two boards are designed such that the drive and feedback ribbon connectors line up. Ribbon cables are supplied. Once they are plugged in, it is only a matter of connecting power supply, motor, and Hall sensor leads to get a system up and running.
AN1717/D
MOTOROLA 7
www..com
MOTOROLA 8
MC68HC705MC4 LOW VOLTAGE MICRO TO MOTOR INTERFACE GND MOTOROLA B+ MOTOROLA ITC122 ITC127 7.5-28VDC BRUSHLESS MOTOR Aout Bout Cout B+ FEEDBACK GND GND 12-48VDC DRIVE
MOTION CONTROL DEVELOPMENT BOARD
Figure 3 Application Example
AN1717/D
The PWM www..com
signal is generated by a dedicated PWM generator in the MC68HC705MC4, and can pulsewidth modulate the output transistors at a rate of 23 kHz with the processor clocked by a 6.00 MHz crystal. Speed is controlled by the duty cycle of this PWM signal, while direction is determined by commutation sequence. Hall sensor inputs provide commutation feedback from the motor. These sensor inputs are buffered with Schmitt triggers and filtered, to provide noise immunity. An important application consideration is loss of power. If the two boards in Figure 3 are powered from separate power supplies, loss of power to the ITC127 board will pull all of the power board's inputs low. With all of its inputs low, the power board will turn on all three upper half-bridge output transistors and abruptly brake the motor. During power down, removal of the ITC127's power before removal of the motor's power supply brakes the motor. If an ITC132 power stage is used instead of an ITC122, the motor will coast upon removal of the ITC127 control board's power. This difference in behavior occurs because opto inputs on the ITC132 are powered from a switched +5 volts that originates on the ITC127 board.
7 Design Considerations
A number of design considerations are important in brushless dc motor drive systems. Sensor inputs, simultaneous conduction lockout, power up, grounding, and opto coupler drive are discussed below. 7.1 Sensor Inputs For brushless motors that use sensor inputs for commutation, noise immunity of the sensor inputs is a key design consideration. Noise on these inputs can be particularly troublesome, since commutating to the wrong state can jerk the motor and increase power dissipation. To facilitate noise robust sensor inputs, Schmitt triggers have been placed between the Hall sensor input connector and ports PA0, PB7, and PB6. Hysteresis makes the Schmitt trigger significantly more robust than using processor ports directly. In addition, these signals are filtered with 100 ns single pole filters. Using relatively low value pullup resistors, on the order of 1K ohm, provides an additional measure of noise immunity. Code implementation also has an important influence on noise robustness. Since the sequence of commutation is known, based upon the state of the forward/reverse input, it is relatively easy to detect an out-of-sequence Hall sensor input. Generally speaking, when this occurs it is desirable to turn off all the power transistors until a valid Hall code is received. 7.2 Lockout It is desirable to prevent simultaneous conduction of upper and lower power transistors in the same phase, particularly on a machine that will be used for code development. This is easily accomplished with the cross-coupled NOR gates that are shown in Figure 4. These gates lock out the bottom transistor drive signals whenever the top transistor in the same phase is on. Code errors, therefore, will not destroy power stage output transistors by turning on the top and bottom of one half-bridge simultaneously. This arrangement also prevents simultaneous conduction in the event of a noise-induced software runaway.
AN1717/D
MOTOROLA 9
www..com
+5V 1
RP1 10k 4 RP1 1 0k 3 PA5 2 RP1 1 0k PA 4 +5V RP1 1 10k 8 RP1 1 10k 7 PA 3 PA2 RP1 10k C11 .1 U2 1 2 1 6 PA 1 PA 6
MC7 4HC02 2 3 5 6 9 8 11 12 2 3 5 6 U3 1
MC7 4HC36 6 6 7 Ctop 2 - F3 Cbot 2 - F3
U3
4 MC74 HC0 2
U7 MC7 4HC36 6 10 9
U7 MC74 HC0 2 MC7 4HC36 6 10 4 5 U3 U7 MC74 HC0 2 MC7 4HC36 6 13 12 11 U3 U7 MC74 HC0 2 MC7 4HC36 6 1 2 3 U7 MC7 4HC36 6 14 13 U7
Btop 2 - F2 Bbot 2 - F3 Atop 2-F2 Abot 2-F2
T e rmina ted at Pr o to ty pe area PA7 +5V
U4
U4
4 MC74 HC0 2
+5V U1 MC34 0 6 4P- 5
1 RP1 10k 5 RP1 RP1 10k 10k 9 10 SW1 +5V C19 2 2p f Y1 6 .0 mHz C18 2 2p f V3 1 -A 8 V2 1 -E7 V1 1 -D6
2 +IN 1 OUT GND 3
R2 1 0m
* RESET
MC68HC705MC4P 28 PA4/PWMB2 PA3/PWMA2 27 PA5/PWMA3 PA2/PWMB1 3 26 PA6/PWMB3 PA1/PWMA1 4 25 VDD PA0 5 24 PA7 PB7 6 23 VSS PB6 7 22 OSC2 PB5/RDI 8 21 OSC1 PB4/TD0 9 20 RESET* PD7/TCAP2 10 19 IRQ*/Vpp PD6/TCMP/TCAP1 11 18 P C7 /Vr ef l PC0/AD0 12 17 PC6/Vrefh PC1/AD1 13 16 PC5/AD5 PC2/AD2 14 15 PC4/AD4 PC3/AD3 +5V C26 . 01 AGnd J5
HALL_1 2 - D4 HALL_2 2 - C5 HALL_3 2 - D5 SCI_IN 2 - C6 +5V R6 4 . 7k R7 4 . 7k J 4 3 1 R34 4 . 7k R 35 4 . 7k C28 .1 2 SW2 2 3 J3 EXT_FOR/REV 2 - B3 1 FOR/ REV SW3 RUN /STOP SCI_OUT 2 - C6
EXT_*RUN/STOP
+5V
R32 4 . 7k
R33 47 C10 .1 R5 5k +5V AGnd
C27 .1
R3 10k Q1 2 N70 0 0 3 2 1 R4 1K 2 2
SPEED 1 Q2 MPSA 5 6 3 2 3 1
MC74 HC0 2 9 8 11 12 U4 10
AGnd +5V +5_SWITCHED 2 - D2 EXT_SPD_WIPER 2 - B2 C17 . 1uF
U4
13
MC7 4HC02
+5V MC3 32 0 4 R15 4 . 7k Vtemp 2 -E5 1 0 to 1 25 oC AGnd R16 4 . 7k 6 5 C12 .1 U5 +5V 7 R23 1 . 00 k 2 3 R19 1 . 4 0k R18 1 00 R17 174 W U5 11 1 MC3 3 20 4 Gain = 16. 9 V1 1- B4 R8 1 6 . 9k
TP1
AGnd
1 0 amps = 5 volt span gain = 2 12 R21 1 0. 0k R13 1 0 .0 k C14 . 00 1 13
+5V TP2 4 U5 14 V2 1 - B4
R22 1 0 . 0k MC3 32 04 TP3 10 V3 1 - B4 8 U5 9 C13 .0 1
Vbus 2 - D5
Isense 2 - D5
MC3 32 0 4 R9 1 0. 0k
AGND AGnd R12 1 0 .0 k R11 1 0 . 0k AGnd R14 OPTIONAL R10 OPTIONAL
C16 2 2pF
Figure 4 ITC127 Evaluation Board Schematic (Sheet 1 of 2)
MOTOROLA 10
AN1717/D
www..com
T3 B+ PO WER CONNECTOR B+ D1 1N40 02 MC780 5AC IN C6 1uF VR1 OUT GROUND C5 1uF C8 .1uf C9 .1uf GND
+5V T1 PO WER CON CTOR NE +5 DC INPUT PO R WE
+5V
C20 .1uf
C25 .1uf
GN D G ND G ND 1 AGN D AGnd +5V EXT_SPD_WIPER 1 -D5 EXT_SPD_TOP R24 470W LE D1 POWER +5_SWITCHED 1 -B5 3 5 7 9 11 13 G ND 2 Abot 4 Btop 6 Bbot 8 Ctop 10 Cbot 12 GN D 14 J1 Atop Atop 1- E2 Abot 1- E2 Btop 1- E1 Bbot 1- E2 Ctop 1- E1 Cbot 1- E1
EXTE RNAL SPEE POT D
SPE ED +5
REV EXTER NAL RUN/DIRECTION C ONTRO L
EXT_FOR/REV 1 -F4 EXT_RUN/STOP
RUN
O UTPUT CO ECTO NN R J2
T2 +5
+5V C21 4 70pf +5V
1 3 5 R25 1k 7 4 HALL_1 1- D3 9 11 U8 11 10 1 MC14 584BCP U8 13 12 5 MC14 584BCP U8 6 HALL_3 1 -D3 U8 2 HALL_2 1- D2 Vbus 1- C7 Isense 1 -C7 13 15
2 4 6 8 10 12 14 16 AGnd Vtemp 1- B6
C15 .1uf GN D
HALL1 R1 1k HALL2 R20 1k HALL3 HALL EFF ECT INPUTS +5V 16 15 1 U7 8
R26 24
R27 24 C22 4 70pF
U8 9 8 3
U8
MC14 584BCP
R28 24
R29 24 C23 4 70pF
R30 24
R31 24 C24 470pF
INPUT C ONN ECTO R
U6 MC14 5407P SCI_OUT 1 -F3 MC74HC36 6 SCI_IN 1-E3 +5V C4 1uF 1 1 DI3 1 2 DO3 1 3 DI2 1 4 DO2 1 5 DI1 1 6 DO1 1 7 VDD 1 8 C11 9 VCC 2 0 C1+ TX3 1 0 RX3 9 TX2 8 RX2 7 TX1 6 RX1 5 VSS 4 C2- 3 GN 2 D C2+ 1
P1 1 CD 2 RCD <3 TX -> C2 1uF 4 DTR 5G ND 6 DSR 7 RTS C1 1uF 8 CTS 9 RI
+5V 14 C21 .1uF U8 7 MC1458 4BCP
+5V 14 U3, U4 7
C3 1uF C7 .1uF
MC7 4HC02
+5V
DB- 9 CON CTOR NE
Figure 4 ITC127 Evaluation Board Schematic (Sheet 2 of 2)
AN1717/D
MOTOROLA 11
7.3 Power www..com
Up/Power Down
When power is applied or removed it is equally important that top and bottom output transistors in the same phase are not turned on simultaneously. Since the outputs are low when unpowered, sequencing is important in opto coupled drives where the output buffers drive opto couplers. To insure proper sequencing, a switched +5 volts is provided for sourcing drive current to the opto couplers. This supply is held off by an MC34064 until RESET occurs and input voltage is high enough for safe operation. Connection to an opto input is illustrated in Figure 5. It applies to operation with an ITC132 power stage. 7.4 Grounding Last but not least, board layout is an important design consideration. In particular, how grounds are tied together influences noise immunity. In order to maximize noise immunity, two grounds are used. Digital ground (GND) is common to the power supply return and serves as a general-purpose ground. An analog ground (AGND) ties the speed control input return, op amp U3's signal grounds, and the A/D converter's Vrefl together before connecting with digital ground at only one point. AGND also runs as a separate trace to pins 14 and 16 of FEEDBACK connector J2.
+18V 2.2 +5 SWITCHED +5 10K Atop Atop 180 1N914 ISO1 10F MUR1100E 5.6K MC33153
HCPL0453
Figure 5 Connection to an Opto Coupled Output Stage
8 Software
Four software modules and a batch file for assembling them are contained on a 3.5 in. floppy diskette included with the ITC127 motion control development board. Modules A and B contain source code for basic brush and brushless motor control. Modules C and D contain source code for a somewhat "smarter" version of the same software. The brushless modules are written for motors with 60-degree Hall sensors. These files can be assembled with the Motorola "MASM" assembler. Some syntax changes may be necessary for use with assemblers from other vendors. Table 3 Sensor Codes
ANGLE 0 60 120 180 240 300 HALL1 1 1 0 0 0 1 HALL2 0 1 1 1 0 0 HALL3 0 0 0 1 1 1 Aout + + NC -- -- NC Bout -- NC + + NC -- Cout NC -- -- NC + +
MOTOROLA 12
AN1717/D
To assemble www..com
the files, consult the WHATSUP.DOC file on the diskette. Note the handling of the MC68HC705MC4's watchdog timer bit in the MOR register when emulating the processor with a MMDS05/MMEVS05 or when using the EPROM device on the ITC127 board. The watchdog must be disabled when the processor is used in a stand-alone mode on the ITC127 board. The MOR register code must be commented out for loading the S-records into the MMDS05/MMEVS05, as location $F00 is considered to be ROM in the emulator's memory map. The MC68HC705MC4 residing in the emulator must have its watchdog timer bit in the MOR register disabled. The software shows very basic facilities to commutate and provide basic control for brushless and brush type dc motors using the MC68HC705MC4. Complexity is kept to a minimum so the user will spend minimum time studying the software and understanding the steps required to spin a motor. All of the software modules provide open loop motor control. Closed loop algorithms such as PID can be added to provide better speed control under varying load conditions. The modules have been developed using ITC127 control boards, connected to ITC122 and ITC132 power stages. Brushless dc motor software modules were verified with fractional horsepower motors from Pittman, Hurst, Astromec, and Kollmorgen. Brush dc motor software modules were tested using an automotive radiator fan motor. A brief description of each module follows.
8.1 SMPLBRLS.ASM This software module provides basic commutation of a brushless dc motor. There is no acceleration software control provided by the module. An explanation of this software may help. There are four sources of interrupts to the processor. Each Hall effect rotor position sensor transition provides one of three interrupts. The fourth interrupt is provided by the processor's timer overflow interrupt. The RUN/STOP toggle switch is monitored by the program. When the switch is in the RUN position, the potentiometer is read by the A/D converter and that value is placed into the PWM data register. Because the motor is not rotating, no Hall sensor interrupts are received. Nothing will happen until the timer overflow interrupt has incremented a variable named TIMEOUT to three. When this occurs, the program looks at the position of the rotor and commutates it to its next position in the rotation sequence. As the motor rotates, the Hall effect sensors will then interrupt the processor and commutation will continue. At this point, unless the motor is rotating very slowly, the timer overflow interrupt that helped the motor to start will no longer have an effect on the program, as rotation will keep the values of TIMEOUT to less than three. To keep things simple, this software only rotates the motor in a clockwise direction as viewed from the shaft end of the motor. Speed control is provided by reading the value of the speed potentiometer on the board and placing the potentiometer value in the PWM data register. 8.2 BRUSHLES.ASM This software module provides somewhat more intelligent commutation of a brushless dc motor than SMPLBRLS.ASM. To protect power transistors, PWM limits are checked at the lower and upper ends of the PWM duty cycle. Motor direction control is provided by sensing the position of the FORWARD/ REVERSE toggle switch. To help eliminate jerking at initial startup and upon direction changes, a simple form of acceleration control is provided. Hall effect sensor error code checking/recovery is included to enhance noise immunity. In addition, the speed control A/D value is integrated to eliminate jitter at speed extremes. Motor commutation is the same as provided in the SMPLBRLS.ASM software. 8.3 SMPLBRSH.ASM Controlling a brush type dc motor is much easier than driving a brushless dc motor. This software sets up the PWM generator such that Aout will switch B+ voltage to the motor and Cout will be the ground output to the motor. The Aout output will receive the PWM signal. This software module simply reads the RUN/STOP toggle switch and, if it is in the off position, the program will force the PWM duty cycle to zero, thus stopping the motor. If the switch is in the on position, the potentiometer value is read by the A/D converter and that value is placed into the PWM data register, controlling the speed of the motor.
AN1717/D
MOTOROLA 13
8.4 BRUSH.ASM www..com This software module provides somewhat more intelligent control of a brush dc motor than SMPLBRSH.ASM. Similar to BRUSHLESS.ASM, PWM limits, forward/reverse, and controlled acceleration are provided. Speed control is the same as provided in SMPLBRSH.ASM.
9 Conclusion
By combining an M68HC05 core with a motor-specific PWM timer, the MC68HC05MC4 has been made easy to use in brush and brushless dc motor drive applications. The board described here is intended to allow code development without the necessity for building hardware and it interfaces easily with ITC122 and ITC132 power stages.
MOTOROLA 14
AN1717/D
www..com
AN1717/D
MOTOROLA 15
www..com
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different applications. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. MCUinit, MCUasm, MCUdebug, and RTEK are trademarks of Motorola, Inc. MOTOROLA and the Motorola logo are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
How to reach us:
USA/EUROPE/Locations Not Listed: Motorola Literature Distribution; P.O. Box 5405, Denver Colorado 80217. 1-800-441-2447, (303) 675-2140 MfaxTM: RMFAX0@email.sps.mot.com - TOUCHTONE (602) 244-6609, U.S. and Canada Only 1-800-774-1848 INTERNET: http://Design-NET.com JAPAN: Nippon Motorola Ltd.; Tatsumi-SPD-JLDC, 6F Seibu-Butsuryu-Center, 3-14-2 Tatsumi Koto-Ku, Tokyo 135, Japan. 81-3-3521-8315 ASIA PACIFIC: Motorola Semiconductors H.K. Ltd.; 8B Tai Ping Industrial Park, 51 Ting Kok Road, Tai Po, N.T., Hong Kong. 852-26629298
AN1717/D


▲Up To Search▲   

 
Price & Availability of AN1717

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X